package com.pb.news.service.impl;

import java.util.ArrayList;
import java.util.List;

import com.pb.news.entity.NewsCategory;
import com.pb.news.service.NewsCategoryService;

/** 
* @author  作者:袁云 
* @date 创建时间：2017年5月19日 下午9:53:15
*/
public class NewsCategoryServiceTest {
	public static void main(String[] args) {
		NewsCategoryService newsCategoryService = new NewsCategoryServiceImpl();
		List<NewsCategory> newsCategoryList = new ArrayList<NewsCategory>();
		newsCategoryList = newsCategoryService.getNewsCategoryList();
		for(NewsCategory newsCategory : newsCategoryList){
			System.out.println("id:" + newsCategory.getId() + "\tname:" + newsCategory.getName());
		}
	}
}
